package com.yylany.service;

import com.yylany.pojo.User;
import com.yylany.pojo.vo.UserVO;

/**
 * User  yyl
 * Description: house
 * Created by yaoyonglong on 2018/11/3 23:36
 */
public interface UserService {


    /**
     * 用户注册，因为使用的是vo类型，需要进行Bean拷贝
     *
     * @param user
     * @return
     */
    boolean addAccount(UserVO user);

    boolean enable(String key);

    User auth(String email, String password);

    void updateUser(User updateUser, String email);

    User getUserByEmail(String email);
}
